//
//  LoadingView.m
//  AgriMobile
//
//  Created by 春名 啓作 on 11/05/28.
//  Copyright 2011 e-agri. All rights reserved.
//

#import "LoadingViewController.h"


@implementation LoadingViewController

@synthesize loadingView;
@synthesize activity;

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)viewWillAppear:(BOOL)animated {

	[self netAccessStart];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code.
}
*/

- (void)netAccessStart {
	
	[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;

	[activity startAnimating];	
}


- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
	[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
	[activity stopAnimating];

    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {

	[loadingView release];
	[activity release];

    [super dealloc];
}


@end
